package com.origin.src.lazy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;


@Component
@Lazy
public class LazyA {

    public LazyA() {
        System.out.println("LazyA");
    }

    @Lazy
    @Autowired
    public LazyB lazyB;

    public void to() {
        lazyB.to();
    }

}
